package logic.util;

import android.content.Context;

import com.NewActionHelp;
import com.shwread.http.base.ObjectHttpResponseHandler;
import com.shwread.http.base.TextHttpResponseHandler;

import logic.bean.ChapterInfo;


/**
 * @author xuzhijun
 * @date 2015年5月19日下午3:04:32
 */
public class qryChapterInfoUtil {

    public void qryChapterInfo(Context context, String bookId, String chapterId, TextHttpResponseHandler handler) {
        NewActionHelp.qryChapterInfo(context, bookId, chapterId, new ResponseHandlerForChapterInfo(handler, context, bookId, chapterId));
    }

    public void qryChapterInfo(Context context, String bookId, String chapterId, int chapterIndex, TextHttpResponseHandler handler) {
        NewActionHelp.qryChapterInfo(context, bookId, chapterId, new ResponseHandlerForChapterInfo(handler, context, bookId, chapterId, chapterIndex));
    }

    public void qryChapterInfo(Context context, String bookId, String chapterId, ObjectHttpResponseHandler<ChapterInfo> handler) {
        NewActionHelp.qryChapterInfo(context, bookId, chapterId, new ResponseHandlerForChapterInfo(handler, context, bookId, chapterId));
    }

    public void qryChapterInfo(Context context, String bookId, String chapterId, int chapterIndex, ObjectHttpResponseHandler<ChapterInfo> handler) {
        NewActionHelp.qryChapterInfo(context, bookId, chapterId, new ResponseHandlerForChapterInfo(handler, context, bookId, chapterId, chapterIndex));
    }

    public void qryChapterInfo(Context context, String bookId, String chapterId) {
        NewActionHelp.qryChapterInfo(context, bookId, chapterId, new EmptyHandlerForChapterInfo());
    }
}
